/**
 * 
 */
package org.xserver.core.command;

import org.xserver.Application;

/**
 * @author jkonopka
 * 
 */
public class ApplicationInitializeCommand implements ICommand {

	/**
	 * 
	 */
	private static final long serialVersionUID = 735029220227337071L;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jserver.command.ICommand#execute()
	 */
	@Override
	public void execute() throws Exception {
		final CompositeCommand command = new CompositeCommand();
		command.add(new FolderInitializeCommand(Application.getUserPath()));
		command.add(new FolderInitializeCommand(Application.getUserConfPath()));
		command.add(new FolderInitializeCommand(Application.getPluginPath()));
		command.add(new FolderInitializeCommand(Application.getAppLibPath()));
//		command.add(new AddClassPathCommand(Application.getPluginPath()));
//		command.add(new AddClassPathCommand(Application.getAppLibPath()));
		command.add(new SettingsFileInitializeCommand());
		command.execute();
	}

}
